Skip to content

chore(deps-dev): bump @pharn-dev/phargus from 0.2.1 to 0.3.0 - #458

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/pharn-dev/phargus-0.3.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/pharn-dev/phargus-0.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps @pharn-dev/phargus from 0.2.1 to 0.3.0.

Release notes

Sourced from @​pharn-dev/phargus's releases.

v0.3.0

Added

  • A file output now has a size bound: PHARGUS_OUTPUT_MAX_BYTES (config key outputMaxBytes, default 64 MiB, 0 = no bound). Before a line would take the file past it, the agent renames it to <file>.1, replacing an older one, and continues in a new file created with mode 0600, so at most twice the bound is on disk and no line is split. Rotation uses asynchronous file calls only; a failed rename disables the agent with one [phargus] agent disabled: ... line. Under --permission a file output now also needs --allow-fs-write=<file>.1 and --allow-fs-read=<file> (see docs/PERMISSIONS.md).
  • PHARGUS_SPAN_BUFFER (config key spanBuffer, 0 to 65536, default 1024) sets how many spans the agent keeps per sampling interval; the rest are counted in dropped.spans. 0 turns HTTP tracing off and keeps the samplers and the backpressure probe: nothing is patched or subscribed, no span line is written, and currentTraceId() returns undefined. The variable is read before anything is patched, like PHARGUS_ENABLED; an invalid value disables the agent with a message naming it. bench/overhead.mjs has a notrace variant (the agent with PHARGUS_SPAN_BUFFER=0).
  • phargus serve --alert '<metric><op><threshold>[:<windows>]' raises collector alerts from the command line, for example --alert 'eventLoop.p99>50ms:3' or --alert 'memory.rssLast>=512MiB'. The flag is repeatable, the rule id is its text, and the threshold takes ms/s for time metrics and MiB/GiB for memory metrics. Each rule prints one stderr line when it fires and one when it resolves, and the dashboard's Alerts panel shows them. A bad rule is a usage error (exit 2) that quotes it; an unknown metric lists the valid names.
  • Each dashboard card now shows the recent trend, not only the last value: the page keeps the last 300 windows it received and draws an inline SVG sparkline of event loop p99, heap used and RSS, GC total pause, and backpressure total stall, labelled with the line's maximum. Sparkline redraws are coalesced to one per animation frame, and a reconnect refills the lines from the new replay.
  • The agent's drop counters now reach the user: each collector window carries dropped: { samples, spans } from its last sample (missing or malformed counts as 0; persisted windows without the field restore with zeros), the dashboard header shows "agent dropped N samples, M spans" when either is above 0 and the waterfall notes that older requests may be missing, and the counts: line of phargus serve adds agent.droppedSamples and agent.droppedSpans. OTLP metrics are unchanged.
  • Collector windows now keep where writes stalled: backpressure.hotspots holds the top 5 call sites by total stall, merged by site across the window's samples (at most 64 distinct sites tracked per window, sites cut to 256 characters). A sample with missing or malformed hotspots still counts. Persisted windows carry the field (older lines restore with an empty list), and the dashboard has a Backpressure section with the latest window's stalls and call sites. OTLP metrics are unchanged.
  • The dashboard says when its data is stale: each card shows the end time of the window on display, and after max(3 × window length, 5 s) without a new window the status reads stale: no data for N s (counting up, in the error style) until the next window arrives. A disconnected stream still shows reconnecting. docs/LIMITS.md §2 explains why the figures are one window behind.
  • phargus serve now passes the app's own output through: when reading stdin, every line that is not agent data (plain text and JSON log lines) is written to its stdout in input order, instead of disappearing. --no-passthrough turns it off; a file input never echoes. Output is bounded at 1 MiB waiting (further lines are dropped and counted as passthrough.dropped), and a closed stdout stops the passthrough with one stderr line. createNdjsonDecoder gets agentOnly: true, which skips non-agent JSON objects as foreign (a new counter and onSkipped reason with the raw line); the counts: line gains decoder.foreign and

... (truncated)

Changelog

Sourced from @​pharn-dev/phargus's changelog.

[0.3.0] - 2026-11-24

Added

  • A file output now has a size bound: PHARGUS_OUTPUT_MAX_BYTES (config key outputMaxBytes, default 64 MiB, 0 = no bound). Before a line would take the file past it, the agent renames it to <file>.1, replacing an older one, and continues in a new file created with mode 0600, so at most twice the bound is on disk and no line is split. Rotation uses asynchronous file calls only; a failed rename disables the agent with one [phargus] agent disabled: ... line. Under --permission a file output now also needs --allow-fs-write=<file>.1 and --allow-fs-read=<file> (see docs/PERMISSIONS.md).
  • PHARGUS_SPAN_BUFFER (config key spanBuffer, 0 to 65536, default 1024) sets how many spans the agent keeps per sampling interval; the rest are counted in dropped.spans. 0 turns HTTP tracing off and keeps the samplers and the backpressure probe: nothing is patched or subscribed, no span line is written, and currentTraceId() returns undefined. The variable is read before anything is patched, like PHARGUS_ENABLED; an invalid value disables the agent with a message naming it. bench/overhead.mjs has a notrace variant (the agent with PHARGUS_SPAN_BUFFER=0).
  • phargus serve --alert '<metric><op><threshold>[:<windows>]' raises collector alerts from the command line, for example --alert 'eventLoop.p99>50ms:3' or --alert 'memory.rssLast>=512MiB'. The flag is repeatable, the rule id is its text, and the threshold takes ms/s for time metrics and MiB/GiB for memory metrics. Each rule prints one stderr line when it fires and one when it resolves, and the dashboard's Alerts panel shows them. A bad rule is a usage error (exit 2) that quotes it; an unknown metric lists the valid names.
  • Each dashboard card now shows the recent trend, not only the last value: the page keeps the last 300 windows it received and draws an inline SVG sparkline of event loop p99, heap used and RSS, GC total pause, and backpressure total stall, labelled with the line's maximum. Sparkline redraws are coalesced to one per animation frame, and a reconnect refills the lines from the new replay.
  • The agent's drop counters now reach the user: each collector window carries dropped: { samples, spans } from its last sample (missing or malformed counts as 0; persisted windows without the field restore with zeros), the dashboard header shows "agent dropped N samples, M spans" when either is above 0 and the waterfall notes that older requests may be missing, and the counts: line of phargus serve adds agent.droppedSamples and agent.droppedSpans. OTLP metrics are unchanged.
  • Collector windows now keep where writes stalled: backpressure.hotspots holds the top 5 call sites by total stall, merged by site across the window's samples (at most 64 distinct sites tracked per window, sites cut to 256 characters). A sample with missing or malformed hotspots still counts. Persisted windows carry the field (older lines restore with an empty list), and the dashboard has a Backpressure section with the latest window's stalls and call sites. OTLP metrics are unchanged.
  • The dashboard says when its data is stale: each card shows the end time of the window on display, and after max(3 × window length, 5 s) without a new window the status reads stale: no data for N s (counting up, in the error style) until the next window arrives. A disconnected stream still shows reconnecting. docs/LIMITS.md §2 explains why the figures are one window behind.
  • phargus serve now passes the app's own output through: when reading stdin, every line that is not agent data (plain text and JSON log lines) is written to its stdout in input order, instead of disappearing. --no-passthrough turns it off; a file input never echoes. Output is bounded at 1 MiB waiting (further lines are dropped and counted as passthrough.dropped), and a closed stdout stops the passthrough with one stderr line. createNdjsonDecoder gets agentOnly: true, which skips non-agent JSON objects as foreign (a new counter and

... (truncated)

Commits
  • e3bb941 chore(release): 0.3.0 (#198)
  • 9fb2f57 docs: docs say what main does now (CORE-355) (#197)
  • d2cf1b9 refactor(agent): agent code with no production caller is gone (CORE-364) (#195)
  • 90bc0d9 test: integration tests share one harness and build dist once (CORE-369) (#196)
  • 38abbbd fix(agent): a stalled stdout reader no longer stops the app on Windows (#186)
  • 55488d0 refactor(agent): prototype patches are installed once and are inert when disa...
  • 53cb8ae feat(collector)!: collector plumbing has one path for each job (CORE-367) (#191)
  • 3041c56 feat(otel)!: one exporter factory, one types file, queueCapacity removed (COR...
  • 454ff96 feat(agent)!: agent configuration is environment variables plus one JSON file...
  • cb8872c refactor(analyzer,plugin-runner): fold single-use files and drop dead code (C...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@pharn-dev/phargus](https://github.com/pharn-dev/phargus) from 0.2.1 to 0.3.0.
- [Release notes](https://github.com/pharn-dev/phargus/releases)
- [Changelog](https://github.com/pharn-dev/phargus/blob/main/CHANGELOG.md)
- [Commits](pharn-dev/phargus@v0.2.1...v0.3.0)

---
updated-dependencies:
- dependency-name: "@pharn-dev/phargus"
  dependency-version: 0.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​pharn-dev/​phargus@​0.2.1 ⏵ 0.3.081 +1100100 +188 -2100

View full report

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

pharn

🛡️ pharn-ci · ✅ Pass

Tip

Pass · This change adds no coverable lines; 33 agent setup files found.

Verdict Diff coverage Test integrity Agent setup
✅ Pass no coverable lines none (block) 33 files

🧪 Diff coverage

No coverable lines changed.

🔍 Test integrity

No test-integrity findings (mode: block).

📦 Dependencies

2 added or changed dependencies checked · registry lookups off

No dependency findings.

💬 Messages (1)

  • ℹ️ NO_COVERABLE_CHANGES No added lines are tracked by the coverage report; nothing to measure.
    • Hint: Check that the coverage report tracks the source files this change edits.

🤖 Agent setup (33 files)

Agent setup: 33 files · amp, claude-code, codex, copilot, cursor, jules, opencode, zed

Agent setup files (33)
Path Kind
.claude/commands/pharn-dev-build.md claude-command
.claude/commands/pharn-dev-eval.md claude-command
.claude/commands/pharn-dev-grill.md claude-command
.claude/commands/pharn-dev-memory-promote.md claude-command
.claude/commands/pharn-dev-plan.md claude-command
.claude/commands/pharn-dev-regress.md claude-command
.claude/commands/pharn-dev-review.md claude-command
.claude/commands/pharn-dev-ship.md claude-command
.claude/commands/pharn-dev-verify.md claude-command
.claude/hooks/enforce-writes-scope.cjs claude-hook
.claude/hooks/enforce-writes-scope.test.cjs claude-hook
.claude/hooks/git-worktree-fixture.cjs claude-hook
.claude/hooks/protect-trusted-paths.cjs claude-hook
.claude/hooks/protect-trusted-paths.test.cjs claude-hook
.claude/hooks/session-root.cjs claude-hook
.claude/hooks/session-root.test.cjs claude-hook
.claude/hooks/set-writes-scope.cjs claude-hook
.claude/hooks/set-writes-scope.test.cjs claude-hook
.claude/settings.json claude-settings
.claude/skills/phargus-diagnose claude-skill
.claude/skills/phargus-memory claude-skill
.claude/skills/phargus-rules claude-skill
.claude/skills/phargus-setup claude-skill
.claude/skills/phargus-verify claude-skill
.claude/skills/pharn-ci-cover claude-skill
.claude/skills/pharn-ci-explain claude-skill
.claude/skills/pharn-ci-fix claude-skill
.claude/skills/pharn-ci-install claude-skill
.claude/skills/pharn-ci-policy claude-skill
.claude/skills/pharn-cli claude-skill
.claude/skills/security-audit claude-skill
AGENTS.md agents-md
CLAUDE.md claude-md

pharn-ci 0.12.0 · report schema v2 · coverage format lcov

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants